package com.muqi.server.common.response;

import cn.hutool.json.JSONUtil;
import lombok.Data;

@Data
public class ResponseClass {
    Integer code;
    Object data;
    String message;

    public ResponseClass(int code, Object data, String message) {
        this.code = code;
        this.data = data;
        this.message = message;
    }

    @Override
    public String toString() {
        return JSONUtil.toJsonStr(this);
    }
}
